package com.fjh.repository;

import com.fjh.pojo.Activity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ActivityRepository extends JpaRepository<Activity, Long> {


    List<Activity> findByNameContainingAndStatusOrderByIdDesc(String name, Integer status);

    List<Activity> findByNameContainingOrderByIdDesc(String name);

    List<Activity> findByStatusOrderByIdDesc(Integer status);

    List<Activity> findAllByOrderByIdDesc();

}



